package ile.DAO;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */




import ile.Modelo.Devolucion;
import java.util.List;
import javax.persistence.Query;

/**
 *
 * @author 
 */
public class DevolucionDAO extends DAOAbstract<Devolucion> {

    public DevolucionDAO(Devolucion t) {
        super(t);
    }
    
    public List<Devolucion>buscartodos(){
        Query consulta = this.getEntityManager().createQuery("Select devolucion from Devolucion devolucion");
        return consulta.getResultList();
    }

}
